#ifndef __OPERATE_FLASH_H__
#define __OPERATE_FLASH_H__
#define START_ADDR_FCNT                    ((uint32_t)0x800F000)
#define START_ADDR_JOIN_INFO               ((uint32_t)0x800F100)
#define START_ADDR_DEVICE_EUI              ((uint32_t)0x800F200)
#include "stdbool.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include "stm32l0xx.h"
#include "stm32l0xx_hal.h"

enum Start_flash_address_e
{
    E_START_FLASH_ADDR_FCNT,
    E_START_FLASH_ADDR_JOIN_INFO,
    E_START_FLASH_ADDR_DEVICE_EUI
};


bool Read_flash_data(uint8_t datas[], uint8_t length, enum Start_flash_address_e start_addr_type);

bool Write_flash_data(uint8_t datas[], uint8_t length, enum Start_flash_address_e start_addr_type);


#endif
